package org.byqh.dqeai.entity;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.EntityFileProxy;
import com.easy.query.core.annotation.Table;
import com.easy.query.core.proxy.ProxyEntityAvailable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.byqh.dqeai.entity.proxy.EaiSysOrganizationProxy;

import java.time.LocalDateTime;

/**
 * 实体类。
 *
 * @author easy-query-plugin automatic generation
 * @since 1.0
 */
@Data
@Schema(name = "EaiSysOrganization", description = "$table.comment")
@Table(value = "EAI_SYS_ORGANIZATION")
@EntityFileProxy
public class EaiSysOrganization implements ProxyEntityAvailable<EaiSysOrganization, EaiSysOrganizationProxy> {

    /**
     * 单位唯一标识符
     */
    @Schema(description = "单位唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column(primaryKey = true, value = "ORG_ID")
    private String orgId;

    /**
     * 单位名称
     */
    @Schema(description = "单位名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column(value = "ORG_NAME")
    private String orgName;

    /**
     * 单位代码
     */
    @Schema(description = "单位代码")
    @Column(value = "ORG_CODE")
    private String orgCode;

    /**
     * 10－一级单位，20－二级单位，30－三级单位，40－四级单位
     */
    @Schema(description = "10－一级单位，20－二级单位，30－三级单位，40－四级单位")
    @Column(value = "ORG_LEVEL")
    private Integer orgLevel;

    @Column(value = "PARENT_ID")
    private String parentId;

    @Column(value = "ORG_SEQ")
    private Integer orgSeq;

    /**
     * 创建日期
     */
    @Schema(description = "创建日期", example = "yyyy-MM-dd HH:mm:ss")
    @Column(value = "CREATE_DATE")
    private LocalDateTime createDate;

    @Column(value = "CREATE_USER_ID")
    private String createUserId;

    /**
     * 最后更新的日期
     */
    @Schema(description = "最后更新的日期", example = "yyyy-MM-dd HH:mm:ss")
    @Column(value = "UPDATE_DATE")
    private LocalDateTime updateDate;

    @Column(value = "UPDATE_USER_ID")
    private String updateUserId;
}
